package br.com.arndroid.lib.imp;

import java.util.List;

import br.com.arndroid.lib.validation.ConstraintViolations;

public class ConstraintViolationsWrapper {
	
	private ConstraintViolations cv;
	
	public ConstraintViolationsWrapper() {
		cv = new ConstraintViolations();
	}
	
	public ConstraintViolationsWrapper(String initialViolation) {
		cv = new ConstraintViolations(initialViolation);
	}
	
	public boolean addViolation(String violation) {
		return cv.addViolation(violation);
	}
	
	public int size() {
		return cv.size();
	}
	
	public boolean isEmpty() {
		return cv.isEmpty();
	}
	
	public String formatedErrorMessage() {
		return cv.formatedViolations();
	}
	
	public boolean contains(String value) {
		return cv.contains(value);
	}
	
	public List<String> getViolationsList() {
		return cv.getViolationsList();
	}
}
